package com.emergency.embackend.controller;

import com.emergency.embackend.common.R;
import com.emergency.embackend.service.QuizHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author chddd
 * @description
 * @create 2024/3/13 19:10:54
 */
@RestController
@RequestMapping("/quiz/history")
public class QuizHistoryController {

    @Autowired
    private QuizHistoryService quizHistoryService;

    @GetMapping("getSort")
    public R getSort(){
        return R.ok().put("data",quizHistoryService.getSort());
    }
}
